﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace Comisiones.Models
{
    public class LocalDAO:DbContext
    {
        public LocalDAO() : base("ConexionPrincipalDAO") { }
        public DbSet<Local> locales { get; set; }
        public DbSet<Comercio> comercios { get; set; }
        public DbSet<PuntoServicio> puntosServicio { get; set; }


        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Comercio>().ToTable("Comercio");
            modelBuilder.Entity<Local>().ToTable("CLocal");
            modelBuilder.Entity<PuntoServicio>().ToTable("PuntoServicio");
        }
    }
}